<template>
  <li>
    <h3>姓名是---{{name}}</h3>
    爱好是---<span v-for="item in hobby" :key="item">{{item}}</span>
  </li>
</template>

<script>
export default {
  name: 'Item',
  props: ['name', 'hobby']
}
</script>

<style>
</style>